use std::ffi::c_void;

use jni::{sys::{jint, JNI_VERSION_1_6}, JavaVM};
use log::debug;


pub mod error;

mod utils;
mod server;


#[no_mangle]
pub extern "system" fn JNI_OnLoad(vm: JavaVM, _: *mut c_void) -> jint {
    utils::init(vm);
    server::init();
    debug!("jni_onload exec finish");
    JNI_VERSION_1_6
}
